<%@ page import="belleza.relativa.Persona" %>
<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main">
    <g:set var="entityName" value="${message(code: 'persona.label', default: 'Persona')}"/>
    <title><g:message code="default.show.label" args="[entityName]"/></title>
</head>

<body>
<a href="#show-persona" class="skip" tabindex="-1"><g:message code="default.link.skip.label"
                                                              default="Skip to content&hellip;"/></a>

<div class="nav" role="navigation">
    <ul>
        <li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
        <li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]"/></g:link></li>
        <li><g:link class="create" action="create"><g:message code="default.new.label"
                                                              args="[entityName]"/></g:link></li>
    </ul>
</div>

<div id="show-persona" class="content scaffold-show" role="main">
    <h1><g:message code="default.show.label" args="[entityName]"/></h1>
    <g:if test="${flash.message}">
        <div class="message" role="status">${flash.message}</div>
    </g:if>
    <ol class="property-list persona">

        <g:if test="${personaInstance?.nombre}">
            <li class="fieldcontain">
                <span id="nombre-label" class="property-label"><g:message code="persona.nombre.label"
                                                                          default="Nombre"/></span>

                <span class="property-value" aria-labelledby="nombre-label"><g:fieldValue bean="${personaInstance}"
                                                                                          field="nombre"/></span>

            </li>
        </g:if>

        <g:if test="${personaInstance?.apellido}">
            <li class="fieldcontain">
                <span id="apellido-label" class="property-label"><g:message code="persona.apellido.label"
                                                                            default="Apellido"/></span>

                <span class="property-value" aria-labelledby="apellido-label"><g:fieldValue bean="${personaInstance}"
                                                                                            field="apellido"/></span>

            </li>
        </g:if>

        <g:if test="${personaInstance?.usuario}">
            <li class="fieldcontain">
                <span id="usuario-label" class="property-label"><g:message code="persona.usuario.label"
                                                                           default="Usuario"/></span>

                <span class="property-value" aria-labelledby="usuario-label"><g:fieldValue bean="${personaInstance}"
                                                                                           field="usuario"/></span>

            </li>
        </g:if>

        <g:if test="${personaInstance?.email}">
            <li class="fieldcontain">
                <span id="email-label" class="property-label"><g:message code="persona.email.label"
                                                                         default="Email"/></span>

                <span class="property-value" aria-labelledby="email-label"><g:fieldValue bean="${personaInstance}"
                                                                                         field="email"/></span>

            </li>
        </g:if>

        <g:if test="${personaInstance?.sexo}">
            <li class="fieldcontain">
                <span id="sexo-label" class="property-label"><g:message code="persona.sexo.label"
                                                                        default="Sexo"/></span>

                <span class="property-value" aria-labelledby="sexo-label"><g:fieldValue bean="${personaInstance}"
                                                                                        field="sexo"/></span>

            </li>
        </g:if>

        <g:if test="${personaInstance?.biografia}">
            <li class="fieldcontain">
                <span id="biografia-label" class="property-label"><g:message code="persona.biografia.label"
                                                                             default="Biografia"/></span>

                <span class="property-value" aria-labelledby="biografia-label"><g:fieldValue bean="${personaInstance}"
                                                                                             field="biografia"/></span>

            </li>
        </g:if>

        <g:if test="${personaInstance?.fechaNacimiento}">
            <li class="fieldcontain">
                <span id="fechaNacimiento-label" class="property-label"><g:message code="persona.fechaNacimiento.label"
                                                                                   default="Fecha Nacimiento"/></span>

                <span class="property-value" aria-labelledby="fechaNacimiento-label"><g:formatDate
                        date="${personaInstance?.fechaNacimiento}"/></span>

            </li>
        </g:if>

        <g:if test="${personaInstance?.pais}">
            <li class="fieldcontain">
                <span id="pais-label" class="property-label"><g:message code="persona.pais.label"
                                                                        default="Pais"/></span>

                <span class="property-value" aria-labelledby="pais-label"><g:fieldValue bean="${personaInstance}"
                                                                                        field="pais"/></span>

            </li>
        </g:if>

    </ol>
    <g:form>
        <fieldset class="buttons">
            <g:hiddenField name="id" value="${personaInstance?.id}"/>
            <g:link class="edit" action="edit" id="${personaInstance?.id}"><g:message code="default.button.edit.label"
                                                                                      default="Edit"/></g:link>
            <g:actionSubmit class="delete" action="delete"
                            value="${message(code: 'default.button.delete.label', default: 'Delete')}"
                            onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"/>
        </fieldset>
    </g:form>
</div>
</body>
</html>
